FROM python:3.8
WORKDIR /app

COPY requirements.txt ./
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .

CMD ["gunicorn", "main:app", "--workers", "4", "--worker-class","uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"]
